from sqlmodel import Field, SQLModel

class XMBuyOrderBase(SQLModel):
    """XM购买订单基础模型"""
    uid: int = Field(default=0, description="用户UID")
    monitorBuyId: int = Field(default=0, description="监控挂单ID")
    orderId: int = Field(default=0, description="购买订单ID")
    orderNo: str = Field(default="", description="购买订单号")
    goodsId: int = Field(default=0, description="XM藏品ID")
    goodsPrice: int = Field(default=0, description="XM藏品价格")
    archiveId: int = Field(default=0, description="XM藏品ID")
    archiveName: str = Field(default="", description="XM藏品名称")
    archiveImg: str = Field(default="", description="XM藏品图片")
    platformId: int = Field(default=0, description="藏品发行平台ID")
    status: int = Field(default=0, description="订单状态 0-成功 1-失败")
    failMsg: str = Field(default="", description="失败信息")

class XMBuyOrderCreate(XMBuyOrderBase):
    """XM购买订单创建"""
    pass
